package cn.iocoder.an.module.business.dal.mysql.reportviewnew;

import java.util.*;

import cn.iocoder.an.framework.common.pojo.PageResult;
import cn.iocoder.an.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.an.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.an.module.business.dal.dataobject.reportviewnew.ReportViewNewDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.an.module.business.controller.admin.reportviewnew.vo.*;

/**
 * 消息推送配置 Mapper
 *
 * @author zzy
 */
@Mapper
public interface ReportViewNewMapper extends BaseMapperX<ReportViewNewDO> {

    default PageResult<ReportViewNewDO> selectPage(ReportViewNewPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ReportViewNewDO>()
                .likeIfPresent(ReportViewNewDO::getName, reqVO.getName())
                .orderByDesc(ReportViewNewDO::getId));
    }

}